import { request } from '../utils/request'

export const requestSearchPositions = (params) => {
    return request('GET', '/es/positions', params)
}

export const requestNature = () => {
    return request('GET', '/backstage/natureList')
}

export const requestAllSubList = (data) => {
    return request('GET', '/subscribe/allSubList', data=data)
}

export const requestKeywordsGet = (params) => {
    return request('GET', '/keyword/get', params)
}

export const requestKeywordsGetByParent = (params) => {
    return request('GET', '/keyword/getByParent', params)
}

export const requestKeywordsUpdate = (data) => {
    return request('POST', '/keyword/update', data=data)
}

export const requestKeywordsAdd = (data) => {
    return request('POST', '/keyword/add', data=data)
}

export const requestKeywordsDelete = (params) => {
    return request('POST', '/keyword/delete', params)
}

export const requestGetCity = (params) => {
    return request('GET', '/backstage/city', params)
}